{#<ul class="layui-nav layui-nav-tree" lay-filter="test">#}
<ul class="layui-nav layui-nav-tree">
    {% for item in menu %}
    <li class="layui-nav-item">
            {% if item.link == "root" %}
                <a href="javascript:;"><span class="{{ item.pic }} c12"></span> {{ item.name }}</a>
                <dl class="layui-nav-child">
                {% for itemSon in item.sons %}
                    {% if itemSon.link == "root" %}
                        <dd>
                            <a href="javascript:;"><span class="{{ itemSon.pic }}"></span> {{ itemSon.name }}</a>
                            <dl class="layui-nav-child">
                                {% for itemSonSon in itemSon.sons %}
                                <dd><a href="{{ itemSonSon.link }}" target="mainframe">&nbsp;&nbsp;&nbsp;&nbsp;<span class="{{ itemSonSon.pic }} c12"></span> {{ itemSonSon.name }}</a></dd>
                                {% endfor %}
                            </dl>
                        </dd>
                    {% else %}
                        <dd><a href="{{ itemSon.link }}" target="mainframe"><span class="{{ itemSon.pic }} c12"></span> {{ itemSon.name }}</a></dd>
                    {% endif %}
                {% endfor %}
                </dl>
            {% else %}
                <a href="{{ item.link }}" target="mainframe"><span class="{{ item.pic }} c12"></span> {{ item.name }}</a>
            {% endif %}
    </li>
    {% endfor %}
</ul>
